-- GENERATED SPELL FOR [Atal'ai Warrior] --


function spell0_5256(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5256', 15000, 1)
end

function spell1_5256(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5256', 616, 1)
end

function Sorts_5256(pUnit, Event)
local choix_sorts_5256 = math.random(0, 1)
if choix_sorts_5256 == 0 then
pUnit:RegisterEvent('spell0_5256', 1, 1)
end
if choix_sorts_5256 == 1 then
pUnit:RegisterEvent('spell1_5256', 1, 1)
end
end

function mob5256_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5256', math.random(1500, 3000), 1)
end

function mob5256_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5256_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5256_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5256, 1, 'mob5256_Action')
RegisterUnitEvent(5256, 2, 'mob5256_Leave')
RegisterUnitEvent(5256, 3, 'mob5256_Kill')
RegisterUnitEvent(5256, 4, 'mob5256_Die')
